<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['showtype']='index';
	$return['desc']=$this->plugin_setting('desc');
	set_html('title','系统展示后台');
	exi($return);
}
if($_RQ['op']=='getdata'){
	$return=array();
	$pindex = max(1, intval($_RQ['page']));
	$psize = 50;
	$params=array('uniacid'=>$_SESSION['uniacid'],'status'=>1);
    $orderby='paixu desc,id desc';
	$total='';
	$return['member']=pdo_get('jy_lvpai_member',array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']));
	$return['paidians']=pdo_getslice('jy_lvpai_paidian',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	$return['quyu_types']=$this->quyu_types;
	if($this->session('paidian_id')){
		$return['paidian_info']=$this->paidian_info;
		$return['paidianinfo']=pdo_get('jy_lvpai_paidian',array('id'=>$this->session('paidian_id'),'uniacid'=>$_SESSION['uniacid']));
	}
	exi($return);
}